package com.sgcc.operate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sgcc.operate.mapper.OPutChannelMapper;
import com.sgcc.operate.domain.OPutChannel;
import com.sgcc.operate.service.IOPutChannelService;

/**
 * 投放渠道Service业务层处理
 * 
 * @author sgcc
 * @date 2021-03-25
 */
@Service
public class OPutChannelServiceImpl implements IOPutChannelService 
{
    @Autowired
    private OPutChannelMapper oPutChannelMapper;

    /**
     * 查询投放渠道
     * 
     * @param id 投放渠道ID
     * @return 投放渠道
     */
    @Override
    public OPutChannel selectOPutChannelById(String id)
    {
        return oPutChannelMapper.selectOPutChannelById(id);
    }

    /**
     * 查询投放渠道列表
     * 
     * @param oPutChannel 投放渠道
     * @return 投放渠道
     */
    @Override
    public List<OPutChannel> selectOPutChannelList(OPutChannel oPutChannel)
    {
        return oPutChannelMapper.selectOPutChannelList(oPutChannel);
    }

    /**
     * 新增投放渠道
     * 
     * @param oPutChannel 投放渠道
     * @return 结果
     */
    @Override
    public int insertOPutChannel(OPutChannel oPutChannel)
    {
        return oPutChannelMapper.insertOPutChannel(oPutChannel);
    }

    /**
     * 修改投放渠道
     * 
     * @param oPutChannel 投放渠道
     * @return 结果
     */
    @Override
    public int updateOPutChannel(OPutChannel oPutChannel)
    {
        return oPutChannelMapper.updateOPutChannel(oPutChannel);
    }

    /**
     * 批量删除投放渠道
     * 
     * @param ids 需要删除的投放渠道ID
     * @return 结果
     */
    @Override
    public int deleteOPutChannelByIds(String[] ids)
    {
        return oPutChannelMapper.deleteOPutChannelByIds(ids);
    }

    /**
     * 删除投放渠道信息
     * 
     * @param id 投放渠道ID
     * @return 结果
     */
    @Override
    public int deleteOPutChannelById(String id)
    {
        return oPutChannelMapper.deleteOPutChannelById(id);
    }
}
